//===============================================================================
// Microsoft patterns & practices
// Guidance Explorer Offline Client
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================



using System.Drawing;
using System.Windows.Forms;
using GuidanceExplorer.Model;

namespace GuidanceExplorer.Controls
{
    /// <summary>
    /// Represents the Create View node in the treeview
    /// </summary>
    [MenuItemAttribute(500, "context\\New Item", null, Keys.None)]
    [MenuItemAttribute(540, "context\\-", null, Keys.None)]
    [MenuItemAttribute(550, "context\\Import Item...", GuidanceExplorer.Commands.ImportGuidanceItemToLibrary, Keys.None)]
    [MenuItemAttribute(560, "context\\Save as...", GuidanceExplorer.Commands.SaveViewAs, Keys.None)]
    [MenuItemAttribute(570, "context\\-", null, Keys.None)]
    [MenuItemAttribute(580, "context\\Edit View", GuidanceExplorer.Commands.RenameView, Keys.None)]
    public class CreateViewNode : TreeNode
    {
        /// <summary>
        /// Factory.
        /// </summary>
        /// <returns></returns>
        public static CreateViewNode New()
        {
            return new CreateViewNode();
        }

        /// <summary>
        /// Default constructor.
        /// </summary>
        private CreateViewNode() : base("Create View", 5, 5) 
        {
            Font italic = new Font(FontFamily.GenericSansSerif, 8.25f, FontStyle.Italic);
            this.NodeFont = italic;
        }
        
    }
}

